SET(UnitTests_SRCS 
	dir1/A_Test.cpp 
	dir2/B_Test.cpp 
	dir2/C_Test.cpp
)

ADD_EXECUTABLE(UnitTester main.cpp ${UnitTests_SRCS})
TARGET_LINK_LIBRARIES(UnitTester cppunit dl)

FOREACH(test ${UnitTests_SRCS})
	MESSAGE("  ### adding test ${test}")
	GET_FILENAME_COMPONENT(TestName ${test} NAME_WE)
        ADD_TEST(${TestName} UnitTester ${TestName})
ENDFOREACH(test)


